package edu.nwpu.zya.coreops.modules.alert.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.common.utils.Query;

import edu.nwpu.zya.coreops.modules.alert.dao.DescriptionDao;
import edu.nwpu.zya.coreops.modules.alert.entity.DescriptionEntity;
import edu.nwpu.zya.coreops.modules.alert.service.DescriptionService;


@Service("descriptionService")
public class DescriptionServiceImpl extends ServiceImpl<DescriptionDao, DescriptionEntity> implements DescriptionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DescriptionEntity> page = this.page(
                new Query<DescriptionEntity>().getPage(params),
                new QueryWrapper<DescriptionEntity>()
        );

        return new PageUtils(page);
    }

}